package cn.mux.jdk8.designpatter.decorator;

/**
 * @Title:  Test.java   
 * @Package cn.mux.jdk8.designpatter.decorator   
 * @Description:    测试装饰者模式   
 * @author: 陈成雪     
 * @date:   2017年9月30日 下午3:35:10   
 * @version V1.0
 */
public class Test {
	public static void main(String[] args) {
		Human p  = new Person();
		Decorator decorator  = new Decorator_two(new Decorator_first(  
                new Decorator_zero(p)));
		decorator.wearClothes();
		decorator.walkToWhere();
	}

}
